package ltd.newbee.mall.dao;


import ltd.newbee.mall.entity.NewbeeMallPurchaseInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @ClassName: IPurchaseInfoDAO
 * @Description: 采购管理表 DAO接口
 * @Author: bwh
 * @Date: 2021/9/1 13:15
 * @Version 1.0
 */
public interface IPurchaseInfoDAO extends JpaRepository<NewbeeMallPurchaseInfo,String>
{
    /**
     * 通过供货商id查询相应的订单信息
     * @param supplierId 供货商id
     * @return 分页查询结果
     */
    Page<NewbeeMallPurchaseInfo> queryBySupplierId(String supplierId, Pageable pageable);
}
